<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="org.f0rb.demo.common.Message" %>
<%--@elvariable id="model" type="org.f0rb.demo.model.user.User"--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>
<%@ page session="false" %>
<!DOCTYPE HTML>
<html lang=<%=Message.locale()%>>
<head>
    <meta charset=utf-8>
    <title><%=Message.LOGIN_TITLE%></title>
    <link href="<c:url value="/resources/css/global.css"/>" rel="stylesheet">
    <jsp:include page="/WEB-INF/jsp/head/fixie.jsp"/>
    <style type="text/css">
        #login {
            margin: 80px auto 0;
            width: 880px;
        }
        #login-form {
            margin: 0 auto;
            padding: 30px;
            width: 380px;
            background-color: #FEFEFE;
            border: 1px solid #BfD6E1;
            border-radius: 10px;
            color: #444;
            font: 14px 'Microsoft YaHei','微软雅黑';
        }
    </style>
</head>
<body>
<div id="login">
    <form id="login-form" method="post" autocomplete="off">
        <h4><%=Message.LOGIN_HEADING%></h4>
        <p><label></label><span>${model.messages.login[0]}</span></p>
        <p><label for="username-in"><%=Message.USER_USERNAME_LABEL%></label><input id="username-in" name="username" type="email" required value="${model.username}"></p>
        <p><label for="password-in"><%=Message.USER_PASSWORD_LABEL%></label><input id="password-in" name="password" type="password" required></p>
        <div><input id=autologin-in name=autologin type=checkbox value=true><label for=autologin-in><%=Message.LOGIN_REMEMBER$ME_LABEL%></label></div>
        <div><button type="submit"><%=Message.LOGIN_SUBMIT%></button><a href="javascript:void(0);"><%=Message.LOGIN_FORGOT$PASSWORD%></a></div>
        <div><a href="register"><%=Message.USER_REGISTER%></a></div>
    </form>
</div>
<jsp:include page="/WEB-INF/jsp/common/footer.jsp"/>
</body>
</html>